import request from '@/network/request'

export function fetchList(query) {
    return request({
        url: '/common/fetchList',
        method: 'get',
        params: query
    })
}

export function addRecord(data) {
    return request({
        url: '/common/addRecord',
        method: 'post',
        data
    })
}

export function updateRecord(data) {
    return request({
        url: '/common/updateRecord',
        method: 'post',
        data
    })
}

export function removeRecord(id) {
    return request({
        url: 'common/removeRecord?alarmid=' + id,
        method: 'get',
    })
}